home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / util / misc / Fudgit233.lha / Source / src / Makefile.osf < prev    next >
Encoding:
Makefile  |  1993-12-14  |  2.5 KB  |  98 lines

  1. ##############################
  2. # OSF1 Makefile for FUDGIT
  3. ###############################
  4. #
  5. # macro definitions
  6. LDFLAGS = -lm -Lreadline/ -lreadline -ltermcap -lsys5 # -lmalloc 
  7. # C compiling flags
  8. # OSF compiler supports 'const' declarator and
  9. # have the \a sequence for a bell
  10. CFLAGS = $(OPT) -DVOID_SIGHANDLER -DRESTART_SIGHANDLER -DOSF -verbose 
  11. # Final compiling flags
  12. FCFLAGS =  $(OPT) 
  13. # READLINE CFLAGS for OSF
  14. # Loading <stdlib.h> ... crashes the compiler! So define NOSTDLIB_H
  15. READLINE = USG="-DUSG" \
  16.  OTH_CFLAGS="-DVOID_SIGHANDLER -DRESTART_SIGHANDLER -DNOSTDLIB_H \
  17.  $(VI_MODE) -verbose"
  18. DLDFLAGS = CFLAGS="-g -I."
  19. DLFLAGS = CFLAGS="-g -I.."
  20.  
  21. # You should not need to edit anything below that line (except for sunos 3.5)
  22. # Compiler: Use gcc if you want dynamic loader to work.
  23. OBJECTS = mathparse.o fudgit.o alloc.o setshow.o vgetargp.o plot.o \
  24.     fits.o fit.o svdfit.o medfit.o help.o mrqmin.o \
  25.     command.o code.o math.o lexi.o init.o fft.o macro.o minit.o \
  26.     spline.o readline2.o chd.o if.o strings.o
  27.  
  28. # Guess
  29. SHELL = /bin/sh
  30. # Default compiler
  31. CC = cc
  32. YFLAGS = -d
  33. DATE = `cat ../Date`
  34. VERSION = `cat ../Version`
  35.  
  36. all: 
  37.     (cd readline; $(MAKE) CC="$(CC)" $(READLINE))
  38.     $(MAKE) -f Makefile.osf CC="$(CC)" ../fudgit
  39.  
  40. ../fudgit: $(OBJECTS) fudgit.h setshow.h readline/libreadline.a
  41.     $(CC) $(FCFLAGS) -o ../fudgit $(OBJECTS) $(LDFLAGS)
  42.  
  43. code.o: code.h math.tab.h symbol.h
  44.     $(CC) $(CFLAGS) $(POP) -c code.c
  45.  
  46. command.o: symbol.h code.h macro.h fudgit.h math.tab.h setshow.h help.h \
  47.     install.dummy.c
  48.  
  49. fft.o: math.tab.h code.h symbol.h fudgit.h setshow.h dalloca.h
  50.  
  51. fits.o: symbol.h code.h fudgit.h math.tab.h setshow.h
  52.  
  53. fudgit.o: fudgit.h macro.h ../Date fudgit.c ../Version
  54.     $(CC) $(CFLAGS) -DDATE="\"$(DATE)\"" -DVERSION="\"$(VERSION)\"" -c fudgit.c
  55.  
  56. help.o: help.h fudgit.h help.c
  57.     $(CC) $(CFLAGS) -DHELPFILE="\"$(LIBDIR)/fudgit.help\"" -c help.c
  58.  
  59. if.o: fudgit.h
  60.  
  61. init.o: symbol.h code.h math.tab.h fudgit.h
  62.  
  63. lexi.o: symbol.h code.h fudgit.h math.tab.h
  64.  
  65. macro.o: macro.h fudgit.h setshow.h
  66.  
  67. math.o: fudgit.h 
  68.  
  69. mathparse.o: symbol.h code.h parse.y
  70.     yacc $(YFLAGS) parse.y
  71.     cat y.tab.c | sed s/yy/Ft_mathyy/g > mathparse.c
  72.     rm y.tab.c 
  73.     $(CC) $(CFLAGS) -Olimit 1000 -c mathparse.c
  74.  
  75. medfit.o: dalloca.h
  76.  
  77. minit.o: macro.h setshow.h
  78.  
  79. mrqmin.o: dalloca.h
  80.  
  81. chd.o: fudgit.h
  82.  
  83. plot.o: fudgit.h setshow.h macro.h
  84.  
  85. setshow.o: symbol.h code.h fudgit.h math.tab.h setshow.h macro.h functions.h
  86.  
  87. spline.o: symbol.h code.h fudgit.h math.tab.h command.h dalloca.h
  88.  
  89. svdfit.o: dalloca.h
  90.  
  91. vgetarg.o: fudgit.h macro.h
  92.  
  93. math.tab.h: y.tab.h
  94.     cat y.tab.h | sed s/yy/Ft_mathyy/g > math.tab.h
  95.  
  96. y.tab.h: mathparse.o
  97.  
  98.